all:
	armasm boot.s -o boot.o
	armcc -c uart0.c
	armcc -c main.c
	armcc -c my_printf.c
	armcc -c copy_myself.c
	armcc -c my_shell.c
	armcc -c my_stdio.c
	armcc -c led.c
	armcc -c beep.c
	armcc -c myxmodem.c
	
	armlink boot.o uart0.o main.o my_printf.o copy_myself.o my_stdio.o my_shell.o led.o beep.o myxmodem.o -first boot.o -ro-base 0x33f00000 -o boot.axf
	fromelf -bin boot.axf -o boot.bin
	fromelf -c -d -s boot.axf -o boot.lst
	
clean:
	del -f *.o
	del -f *.axf
	del -f *.lst
	del -f *.bin
	del -f *.bak
	
sjf:
	sjf2440 /f:boot.bin
	
test:
	sjf24x0_ft2232.exe boot.bin 
	